package com.headingdata.define;

public class MethodDemo1 {

    public static void main(String[] args) {
        //了解方法
        //求和1
        int sum1 = sum(25,78);
        int sum2 = sum(28,88);
        System.out.println(sum1);
        System.out.println(sum2);

    }

    public static int sum(int a,int b){
        int sum = a + b;
        return  sum;
    }
}
